# should you have the following error message : 
#	Uncaught exception - load.c(232) : Failed to load library : kyototycoon.ndll
#	ln the .ndll in NEKOPATH or cp it to the current folder

# should you have the following message : 
#	Could not link plugin to process (hxCFFILoader.h 171)
#	ln the nekoapi.ndll in NEKOPATH or cp it to the current folder
RECORDS=10000

all :
	haxe project.hxml

kt :
	# use the following command to create a database in the current directory
	#ktserver -port 1978 -oat -tout 10 "bench.kch#opts=l#bnum=10000#msiz=128m"	
	ktserver

test :
	export NEKOPATH=/usr/lib/neko
	export LD_LIBRARY_PATH=LD_LIBRARY_PATH:/usr/local/lib
	cp /usr/lib/haxe/lib/hxcpp/2,07,0/bin/Linux/nekoapi.ndll .
	cp ../ndll/Linux/kyototycoon.ndll .
	neko kt.n $(RECORDS) #launch test 


test64 :
	export NEKOPATH=/usr/lib64/neko
	export LD_LIBRARY_PATH=LD_LIBRARY_PATH:/usr/local/lib
	cp ../ndll/Linux64/kyototycoon.ndll .
	cp ../ndll/Linux64/nekoapi.ndll .
	neko kt.n $(RECORDS) #launch test 
